package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ConsumeUnionLogMapper;
import com.ruoyi.system.domain.ConsumeUnionLog;
import com.ruoyi.system.service.IConsumeUnionLogService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-22
 */
@Service
public class ConsumeUnionLogServiceImpl implements IConsumeUnionLogService 
{
    @Autowired
    private ConsumeUnionLogMapper consumeUnionLogMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public ConsumeUnionLog selectConsumeUnionLogById(Long id)
    {
        return consumeUnionLogMapper.selectConsumeUnionLogById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param consumeUnionLog 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<ConsumeUnionLog> selectConsumeUnionLogList(ConsumeUnionLog consumeUnionLog)
    {
        return consumeUnionLogMapper.selectConsumeUnionLogList(consumeUnionLog);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param consumeUnionLog 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertConsumeUnionLog(ConsumeUnionLog consumeUnionLog)
    {
        consumeUnionLog.setCreateTime(DateUtils.getNowDate());
        return consumeUnionLogMapper.insertConsumeUnionLog(consumeUnionLog);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param consumeUnionLog 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateConsumeUnionLog(ConsumeUnionLog consumeUnionLog)
    {
        return consumeUnionLogMapper.updateConsumeUnionLog(consumeUnionLog);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteConsumeUnionLogByIds(Long[] ids)
    {
        return consumeUnionLogMapper.deleteConsumeUnionLogByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteConsumeUnionLogById(Long id)
    {
        return consumeUnionLogMapper.deleteConsumeUnionLogById(id);
    }
}
